package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.InstitutionalManagementMapper;
import com.ruoyi.project.system.domain.InstitutionalManagement;
import com.ruoyi.project.system.service.IInstitutionalManagementService;

/**
 * 五项制度Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-15
 */
@Service
public class InstitutionalManagementServiceImpl implements IInstitutionalManagementService 
{
    @Autowired
    private InstitutionalManagementMapper institutionalManagementMapper;

    /**
     * 查询五项制度
     * 
     * @param id 五项制度主键
     * @return 五项制度
     */
    @Override
    public InstitutionalManagement selectInstitutionalManagementById(Long id)
    {
        return institutionalManagementMapper.selectInstitutionalManagementById(id);
    }

    /**
     * 查询五项制度列表
     * 
     * @param institutionalManagement 五项制度
     * @return 五项制度
     */
    @Override
    public List<InstitutionalManagement> selectInstitutionalManagementList(InstitutionalManagement institutionalManagement)
    {
        return institutionalManagementMapper.selectInstitutionalManagementList(institutionalManagement);
    }

    /**
     * 新增五项制度
     * 
     * @param institutionalManagement 五项制度
     * @return 结果
     */
    @Override
    public int insertInstitutionalManagement(InstitutionalManagement institutionalManagement)
    {
        return institutionalManagementMapper.insertInstitutionalManagement(institutionalManagement);
    }

    /**
     * 修改五项制度
     * 
     * @param institutionalManagement 五项制度
     * @return 结果
     */
    @Override
    public int updateInstitutionalManagement(InstitutionalManagement institutionalManagement)
    {
        return institutionalManagementMapper.updateInstitutionalManagement(institutionalManagement);
    }

    /**
     * 批量删除五项制度
     * 
     * @param ids 需要删除的五项制度主键
     * @return 结果
     */
    @Override
    public int deleteInstitutionalManagementByIds(Long[] ids)
    {
        return institutionalManagementMapper.deleteInstitutionalManagementByIds(ids);
    }

    /**
     * 删除五项制度信息
     * 
     * @param id 五项制度主键
     * @return 结果
     */
    @Override
    public int deleteInstitutionalManagementById(Long id)
    {
        return institutionalManagementMapper.deleteInstitutionalManagementById(id);
    }
}
